static void gtk_button_unrealize (GtkWidget * widget);
static void gtk_button_size_allocate (GtkWidget * widget,
GtkAllocation * allocation);
-static void gtk_button_snapshot (GtkWidget * widget, GtkSnapshot *snapshot);
static gint gtk_button_grab_broken (GtkWidget * widget,
GdkEventGrabBroken * event);
static gint gtk_button_key_release (GtkWidget * widget, GdkEventKey * event);
GtkAllocation *out_clip,
gpointer data);
static void gtk_button_set_child_type (GtkButton *button, guint child_type);
-static gboolean gtk_button_render (GtkCssGadget *gadget,
- GtkSnapshot *snapshot,
- int x,
- int y,
- int width,
- int height,
- gpointer data);
static GParamSpec *props[LAST_PROP] = { NULL, };
static guint button_signals[LAST_SIGNAL] = { 0 };
widget_class->screen_changed = gtk_button_screen_changed;
widget_class->unrealize = gtk_button_unrealize;
widget_class->size_allocate = gtk_button_size_allocate;
- widget_class->snapshot = gtk_button_snapshot;
widget_class->grab_broken_event = gtk_button_grab_broken;
widget_class->key_release_event = gtk_button_key_release;
widget_class->enter_notify_event = gtk_button_enter_notify;
GTK_WIDGET (button),
gtk_button_measure,
gtk_button_allocate,
- gtk_button_render,
+ NULL,
NULL,
NULL);
}
}
-static void
-gtk_button_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot)
-{
- gtk_css_gadget_snapshot (GTK_BUTTON (widget)->priv->gadget, snapshot);
-}
-
-static gboolean
-gtk_button_render (GtkCssGadget *gadget,
- GtkSnapshot *snapshot,
- int x,
- int y,
- int width,
- int height,
- gpointer data)
-{
- GtkWidget *widget;
-
- widget = gtk_css_gadget_get_owner (gadget);
-
- GTK_WIDGET_CLASS (gtk_button_parent_class)->snapshot (widget, snapshot);
-
- return gtk_widget_has_visible_focus (widget);
-}
-
static void
gtk_button_do_release (GtkButton *button,
gboolean emit_clicked)